package com.viettel.pon.form;

import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class PoleListForm implements KvmSerializable{
	
	private String sessionId;
	private List<PoleForm> listPoles;
	
	

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public List<PoleForm> getListPoles() {
		return listPoles;
	}

	public void setListPoles(List<PoleForm> listPoles) {
		this.listPoles = listPoles;
	}


	
	 public PoleListForm() {
		super();
	}

	public Object getProperty(int arg0) {
	        
	        switch(arg0)
	        {
	        case 0:
	            return sessionId;
	        case 1:
	            return listPoles;
	        }
	        
	        return null;
	    }

	    public int getPropertyCount() {
	        return 2;
	    }

	    public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
	        switch(index)
	        {
	        case 0:
	            info.type = PropertyInfo.STRING_CLASS;
	            info.name = "sessionId";
	            break;
	        case 1:
	            info.type = PropertyInfo.VECTOR_CLASS;
	            info.name = "listPoles";
	            break;
	        default:break;
	        }
	    }

	    public void setProperty(int index, Object value) {
	        switch(index)
	        {
	        case 0:
	        	sessionId = value.toString();
	            break;
	        case 1:
	        	listPoles = (List<PoleForm>) value;
	            break;
	        default:
	            break;
	        }
	    }
	
}
